import { defineStore } from 'pinia'

const useStore = defineStore('storeId', {
  // arrow function recommended for full type inference
  state: () => ({
    // all these properties will have their type inferred automatically
    currentRoute: 0
  }),
  getters: {
    isEven: (state) => state.currentRoute
  }
})

export default useStore
